package com.cxlin.base

import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

/**
 *
 * @Author: chenxunlin
 * @Date: 2024/4/25 10:12
 */
abstract class BaseActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        initView(savedInstanceState)
        observeStateAndEvent()
        initData(savedInstanceState)
    }

    abstract fun initView(savedInstanceState: Bundle?)
    abstract fun initData(savedInstanceState: Bundle?)
    abstract fun observeStateAndEvent()

}